<?php

use Phinx\Migration\AbstractMigration;

class AddColumnTenantIdInReviewRequestTable extends AbstractMigration
{

    public function up()
    {
        $this->table("review_request")->addColumn("tenant_id", "integer", [
            'limit' => 11,
            'default' => 0,
            'null' => false,
            'comment' => '租户id',
        ])->save();
    }

    public function down()
    {
        $this->table("review_request")->removeColumn("tenant_id")->save();
    }
}
